Skip to main content

ListParts

Description

ListParts interface can list all uploaded parts to which the specified Upload ID belongs.

Request Method

POST

Request Path

/apsara/route/OneRouter/ListParts

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
encoding-typeBODYstringNourlspecifies to encode the returned content and specify the type of encoding. Key uses UTF-8 characters, but the XML 1.0 standard does not support parsing some control characters, such as characters with ASCII values ranging from 0 to 10. If the Key contains control characters that are not supported by the XML 1.0 standard, you can encode the returned Key by specifying the encoding-type.
uploadIdBODYstringNo0004B999EF5A239BB9138C6227D69F95Multipart the ID of the Upload event. Default value: None
max-partsBODYintegerNo1000specifies the maximum number of parts in OSS responses. type: integer default value: 1000
regionIdBODYstringYesNo sample value for this parameter.region id
part-number-markerBODYintegerNo5specifies the starting position of List, only Part whose number is greater than this parameter will be listed. type: integer default value: none
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
NextPartNumberMarkerinteger5if all results are not returned this time, the response request will contain NextPartNumberMarker elements to indicate the PartNumberMarker value of the next request.
PartNumberinteger1Number indicating Part.
Sizeinteger6291456Part size uploaded.
EncodingTypestringurlindicates the type used to encode the returned result. If encoding-type is specified in the request parameter, the key in the returned result is encoded.
IsTruncatedenumeration stringfalseindicates whether the List Part result list returned this time is truncated. true indicates that all results have not been returned this time. false indicates that all results have been returned this time. valid values: true, false
MaxPartsinteger1000returns the maximum number of parts in the request.
UploadIdstring0004B999EF5A239BB9138C6227D69F95Upload event ID.
LastModifieddate2012-02-23T07:01:34.000ZPart upload time.
PartNumberMarkerinteger5Part Number starting position of this List result.
Bucketstringmultipart_uploadBucket name.
ETagstring3349DC700140D7F86A0784842780****ETag of uploaded part content. type: parent node: ListPartsResult.Part
Partcontainernot involvedcontainer for holding part information.
ListPartsResultcontainernot involvedcontainer that holds ListParts request results.
Keystringmultipart.dataObject name.

Example

Successful Response example

{
"NextPartNumberMarker":"5",
"PartNumber":"1",
"Size":"6291456",
"EncodingType":"url",
"IsTruncated":"false",
"MaxParts":"1000",
"UploadId":"0004B999EF5A239BB9138C6227D69F95",
"LastModified":"2012-02-23T07:01:34.000Z",
"PartNumberMarker":"5",
"Bucket":"multipart_upload",
"ETag":"3349DC700140D7F86A0784842780****",
"Part":"not involved",
"ListPartsResult":"not involved",
"Key":"multipart.data"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}